public class Student {
    private String studentNumber;
    private String name;
    private int age;

    // 构造方法
    public Student(String studentNumber,String name,int age){
        this.studentNumber=studentNumber;
        this.name=name;
        this.age=age;
    }

    // get和set访问器


    public String getStudentNumber() {
        return studentNumber;
    }

    public void setStudentNumber(String studentNumber) {
        this.studentNumber = studentNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void alter(){
        age++;
    }
}
